package cosplay.DAO;

import java.sql.Date;
import java.util.List;

import cosplay.Beans.Albums;

public interface AlbumDAO {
	public int add(Albums album);
	public boolean delete (int aid);
	public boolean edit (Albums ablum,int aid);
	public Albums get(int id);
	public List<Integer> getAll();
	public List<Integer> getLastUpload();
	public List<Integer> getMostViewed();
	public List<Integer> getMostComment();
	public List<Integer> getByUpload(Date start, Date end);
	public List<Integer> getByTag (int tid);
	public List<Integer> getByUser(int uid);
	public byte[] getCover(int aid);
	public byte[] getCoverPreview(int aid);
}
